package top.healthylife.gateway.platform.baihang.api.api.operatorproduct;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu014.req.BHReqPhoneTurnNetCheckDto;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu014.res.BHResPhoneTurnNetCheckDto;

/**
 * 手机号码携号转网验证
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "手机号码携号转网验证" , info = "核查手机号码携号转网情况（支持电信、联通、移动）")
public class BHPhoneTurnNetCheckApi implements ParentFace<BHReqPhoneTurnNetCheckDto, BHResPhoneTurnNetCheckDto> {

    private static final String PRODUCT_CODE = "MBASUT14";

    @Override
    public BHResPhoneTurnNetCheckDto execute(BHReqPhoneTurnNetCheckDto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResPhoneTurnNetCheckDto.class);
    }
}
